package com.hefei.hight.proxy.base;

/**
 * @author caizhengjun
 * @date 2020/9/5 2:46 下午
 */
public class TestProxy {
    public static void main(String[] args) {
        UserDao target = new UserDao();

        System.out.println(target.getClass());

        IUserDao proxy = (IUserDao) new ProxyFactory(target).getProxyInstance();

        System.out.println(proxy.getClass());

        proxy.save();
    }
}
